package com.cst.words.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cst.words.mapper.VocabularyMapper;
import com.cst.words.pojo.Vocabulary;
import com.cst.words.service.VocabularyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author : CST
 */
@Service
public class VocabularyServiceImpl extends ServiceImpl<VocabularyMapper, Vocabulary> implements VocabularyService {

    @Autowired
    private VocabularyMapper vocabularyMapper;

    @Override
    public Vocabulary getDescribeByWord(String word) {
       return vocabularyMapper.getDescribeByWord(word);
    }

    @Override
    public Vocabulary getExampleById(int id) {
        return vocabularyMapper.getExampleById(id);
    }
}
